<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>提现</title>
    {include file="include/top"}
    <style>
        .layui-form-item .layui-input-inline {
            width: 80%;
        }

        #LAY_layedit_2 {
            background: #fff;
        }
    </style>
</head>
<body>

<div class="layui-form" lay-filter="layuiadmin-form-useradmin" id="layuiadmin-app-form-tags"
     style="padding: 20px 0 0 0;">
    <div class="layui-form-item">
        <label class="layui-form-label">可提现金额</label>
        <div class="layui-input-inline">
            <input type="text" value="{$data.amount}" name="amount" placeholder="请输入可分账金额" autocomplete="off"
                   class="layui-input" disabled>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">提现金额</label>
        <div class="layui-input-inline">
            <input type="text" name="money" placeholder="请输入金额" class="layui-input" id="input-money"/>
            <b style="box-sizing: border-box;padding-top: 10px;color: #1E9FFF; cursor: pointer"
               id="all-money">全部提现</b>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">账号</label>
        <div class="layui-input-inline">
            <select name="account" lay-search="" lay-filter="status" lay-search>
                <option value="">请选择</option>
                {volist name="account" id="item"}
                <option value="{$item.id}">[{$item.shopNo}] {$item.title}</option>
                {/volist}
            </select>
        </div>
    </div>
</div>

{include file="include/js"}
<script>
    layui.config({
        base: '/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'form', 'layedit', 'upload'], function () {
        var $ = layui.$;
        var form = layui.form;
        $("#all-money").click(function () {
            $("#input-money").val("{$data.amount}");
        })
    });
</script>
</body>
</html>
